import type { PageParams } from "@/types/global"
import type { HotResult } from "@/types/hot"
import { http } from "@/utils/http"

type HotPageParams = PageParams & { subType?:string }

/**
 *
 * @param url 请求地址
 * @param data 请求参数
 * @returns
 */

export const getHotRecommendAPI = (url:string,data?:HotPageParams) => {
  return http<HotResult>({
    method: 'GET',
    url: url,
    data
  })
}
